using System.Collections.Generic;
using BONSAI.Common.DTO;
using BONSAI.DAL;

namespace BONSAI.BLL
{
	public class ProductsBo
	{
		public ProductsDTO GetById(string id)
		{
			return (new ProductsDAO()).GetByID(id);
		}

		public IList<ProductsDTO> GetAll()
		{
			return (new ProductsDAO()).GetAll();
		}

		public string Insert(ProductsDTO products)
		{
			return (new ProductsDAO()).Insert(products);
		}

		public void UpdateByID(ProductsDTO products)
		{
			(new ProductsDAO()).UpdateByID(products);
		}

		public void DeleteByID(string id)
		{
			(new ProductsDAO()).DeleteByID(id);
		}
        public IList<ProductsDTO> GetNew(bool codition)
        {
            return (new ProductsDAO()).GetNew(codition);
        }
	}
}

